package com.jslx.pojo;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.PropertySource;
import org.springframework.stereotype.Component;

import java.io.Serializable;
import java.util.Map;

/**
 * 错误消息提示
 *
 * @author HYL
 * @create 2017-06-15 下午2:02
 **/
@Configuration
@ConfigurationProperties(prefix = "statusMessage")
@PropertySource(value = "classpath:config/erroMessage.properties",encoding = "UTF-8")
@Component
public class ErroMessage implements Serializable {
    public  Map<Integer, String> erroStatusMessage;

    public  Map<Integer, String> getErroStatusMessage() {
        return erroStatusMessage;
    }

    public  void setErroStatusMessage(Map<Integer, String> erroStatusMessage) {
        this.erroStatusMessage = erroStatusMessage;
    }
}
